import Image
import uuid
import argparse


parser=argparse.ArgumentParser()

parser.add_argument(
	'filename', help='an integer in the range 0..9')

args=parser.parse_args()

file_name = args.filename

if not file_name:
	print "Error need filename"
	exit(1)
im = Image.open(file_name)
im.save(str(uuid.uuid4()) + '.png')